package com.bjb.vr.common.dto;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 分组引用表
 *
 * @TableName res_group_ref
 */
@TableName(value = "res_group_ref")
@Data
public class ResGroupRef extends BaseModel implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private String tenantId;

    /**
     * 数据ID用于同步
     */
    @TableField(value = "data_id", fill = FieldFill.INSERT)
    private Long dataId;

    /**
     * 用户id
     */
    @TableField(value = "account_id", fill = FieldFill.INSERT)
    private Long accountId;

    /**
     * 组ID
     */
    @TableField(value = "group_id")
    private Long groupId;

    /**
     * 设备ID
     */
    @TableField(value = "dev_id")
    private Long devId;

    /**
     * 设备标识符
     */
    @TableField(value = "dev_udid")
    private String devUdid;

    /**
     * 管理员ID
     */
    @TableField(value = "acct_id")
    private Long acctId;

    /**
     * 管理员账号
     */
    @TableField(value = "acct_no")
    private String acctNo;

    /**
     * 管理员
     */
    @TableField(value = "acct_name")
    private String acctName;

    /**
     * 1:表示管理员 0:表示设备
     */
    @TableField(value = "isAdmin")
    private Integer isadmin;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private LocalDateTime gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    private LocalDateTime gmtModified;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}